package action;

import org.openqa.selenium.WebDriver;

import page.page_dashboard;
import page.page_login;

public class loginLogout {	
	
	public static void login(WebDriver d, String username, String password){		
		page_login.txtUsername(d).sendKeys(username);
		page_login.txtPassword(d).sendKeys(password);
		page_login.btnSignIn(d).click();
	}
	
	public static void logout(WebDriver d){
		page_dashboard.lnkUser(d).click();
		page_dashboard.lnkSignOut(d).click();
	}
}
